<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ykj
  Date: 16/3/15
  Time: 下午9:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>华软理财-欢迎注册</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/login.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/login.js"></script>
    <script src="${pageContext.request.contextPath}/bootstrap/js/jquery.bootstrap.min.js"></script>
</head>
<body>
    <div class="register">
        <h1>注册</h1>
        <form id="formlogin" method="post" onsubmit="return registerCheck()" action="registerService">
            <input type="text" id="phone" name="user.phone" placeholder="手机号" value="${user.phone}" required="required" oninvalid="setCustomValidity('请填写手机号');" oninput="setCustomValidity('');"/>
            <input type="password" id="password" name="user.pwd" placeholder="密码" required="required" oninvalid="setCustomValidity('请填写密码');" oninput="setCustomValidity('');"/>
            <input type="password" id="confirm_pwd" placeholder="确认密码" required="required" oninvalid="setCustomValidity('请填写确认密码');" oninput="setCustomValidity('');"/>
            <input type="text" id="name" name="user.name" placeholder="真实名字" value="${user.name}" required="required" oninvalid="setCustomValidity('请填写真实名字');" oninput="setCustomValidity('');"/>
            <input type="text" id="idCard" name="user.id_card" placeholder="身份证" value="${user.idCard}" required="required" oninvalid="setCustomValidity('请填写身份证');" oninput="setCustomValidity('');"/>
            <input type="email" id="email" name="user.email" placeholder="邮箱" value="${user.email}" required="required" oninvalid="setCustomValidity('请填写邮箱');" oninput="setCustomValidity('');"/>
            <c:if test="${not empty errorTip}">
                <div class="error-tip">${errorTip}</div>
            </c:if>
            <input id="registerBtn" type="submit" class="btn btn-primary btn-block btn-large" value="注册"/>
            <a href="login" id="loginBtn" type="button" class="btn btn-primary btn-block btn-large" style="margin-top: 10px;">返回登陆</a>
        </form>
    </div>
</body>
</html>
